<?php
    function getPermList(){
        $username = Session::get('username');
        $perm_list_tmp = Db::name('uer_perm')->where('username',$username)->find();
        $perm_list = explode(',',$perm_list_tmp);
        return $perm_list;
    }
